import React, { Component } from 'react'
import { connect } from 'react-redux'
import action from '../../store/action/login.js'

class Login extends Component {
    componentDidMount(){
        this.props.getLogin()
    }
    render() {
        return (
            <div>
                <form>
                    <input type="text"></input>
                    <input type="submit"></input>
                </form>
            </div>)
    }
}
// 将主键仓库合并
Login = connect(
    state => state.login,
    action // 会成为当前组件的属性对象
)(Login)

export default Login;
